import request from '@/utils/request'

//课程分类模块
export default {
  //查询所有课程分类的树形结构
  findAll(){
    return request({
      url: `/eduservice/subject/findAll`,
      method: 'get'
    })
  },
  //查询所有一级分类
  findAllOneSubject(){
    return request({
      url: `/eduservice/subject/findAllOneSubject`,
      method: 'get'
    })
  },
  //根据parentId查询所有一级分类
  findAllTwoSubject(parentId){
    return request({
      url: `/eduservice/subject/findAllTwoSubject/${parentId}`,
      method: 'get'
    })
  },
}
